package com.ruoyi.comment.domain.vo;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 评论管理对象 comment
 *
 * @author ruoyi
 * @date 2025-05-22
 */
public class CommentVO extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论唯一标识符 */
    private Long commentId;

    /** 发表评论的用户ID */
    @Excel(name = "发表评论的用户昵称")
    private String userId;

    /** 被评论的文章ID */
    @Excel(name = "被评论的文章ID")
    private Long articleId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    public void setCommentId(Long commentId)
    {
        this.commentId = commentId;
    }

    public Long getCommentId()
    {
        return commentId;
    }

    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }

    public void setArticleId(Long articleId)
    {
        this.articleId = articleId;
    }

    public Long getArticleId()
    {
        return articleId;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("userId", getUserId())
            .append("articleId", getArticleId())
            .append("content", getContent())
            .append("createTime", getCreateTime())
            .toString();
    }
}
